package neo.indigo.android;

import neo.indigo.R;
import neo.indigo.R.id;
import neo.indigo.R.layout;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class Keyboard extends Activity {
	EditText a;
	String var = "";

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.acticity_keyboard);
		a = (EditText) findViewById(R.id.edit_nombreplantilla);
	}

	public void oc_aceptar(View view) {
		/*
		 * var=a.getText().toString(); String recuperamos_variable_string =
		 * getIntent().getStringExtra("variable_string");
		 * recuperamos_variable_string=var; this.finish();
		 */
		Intent data = new Intent();
		var = a.getText().toString();
		data.putExtra("DATO", var);
		setResult(RESULT_OK, data);
		finish();

	}
}
